package com.jiangyg.mall.gateway;

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 网关服务启动类
 * VM：-javaagent:D:\workspace\mall\mall\mall-common\mall-common-skywalking\agent\skywalking-agent.jar -Dskywalking.agent.service_name=mall-gateway-service -Dskywalking.agent.instance_name=mall-gateway-instance -Dskywalking.collector.backend_service=114.116.232.230:9020
 */
@SpringBootApplication
@EnableDiscoveryClient
public class GatewayApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(GatewayApplication.class);
        app.setBannerMode(Banner.Mode.CONSOLE);
        app.run(args);
        System.out.println("网关服务启动完成！");
    }

}
